<template>
  <div>
    <el-card class="box-card">
      <div slot="header">
        <span>{{title}}</span>
        <slot name="btn"></slot>
      </div>
      <div class="panel-content">
        <slot></slot>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
    },
  },
};
</script>

<style lang="less" scoped>
.el-card__header {
  div {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
</style>